﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nature.Data.CkMarkup
{
    public partial class CkEnhanced
    {
        
    }

    public static partial class Extensions
    {
        public static double GetEfficiency(this IEnumerable<CkEnhanced> enhanced, string speciesID)
        {
            return enhanced.Where(i => i.ReagentID == speciesID).Select(i => i.Coefficient).Single();
        }
    }
}
